<?php

namespace app\common\validate;

use think\Validate;

class User extends Validate
{
    protected $rule = [
        'mobile'  => 'require|mobile',
        'nickname'  => 'require',
    ];
    protected $message  =   [
        'nickname.require' => '昵称不能为空',
        'mobile.require' => '手机号不能为空',
        'mobile.mobile' => '手机号格式不正确',

    ];
}
